package com.woniuxy.service.impl;

import com.woniuxy.entity.Chat;
import com.woniuxy.mapper.ChatMapper;
import com.woniuxy.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChatServiceImpl implements ChatService {
    @Autowired
    private ChatMapper chatMapper;

    @Override
    public List<Chat> getChat(Integer publisherId, Integer consumerId) {
        return chatMapper.getChat(publisherId, consumerId);
    }
}
